/*
 * 11.2.cpp
 *
 *  Created on: 2012-5-25
 *      Author: jawinton
 */


#include <cstdio>
#include <algorithm>

using namespace std;

struct Student{
	char ID[20];
	char name[50];
	float score;
	Student *next;
};

struct StudentList{
	Student *head;
	int totalStudent;
	float totalScore;

};

StudentList list;

bool addStudent(Student *stu) {
	stu->next = list.head;
	list.head = stu;
	list.totalStudent++;
	list.totalScore += stu->score;
	return true;
}

bool delAllStudent() {
	while (list.head != NULL) {
		Student *stu = list.head;
		list.head = list.head->next;
		delete stu;
	}
	return true;
}

int main (void) {
	list.head = NULL;
	list.totalScore = 0;
	list.totalStudent = 0;
	Student *stu;
	while (true) {
		stu = new Student;
		scanf("%s%s%f", stu->ID, stu->name, &stu->score);
		if (stu->score < 0) {
			delete stu;
			break;
		}
		addStudent(stu);
	}
	printf("Total students: %d, total score: %.2f\n", list.totalStudent, list.totalScore);
	delAllStudent();
	return 0;
}
